package com.sunshine.lnuplus.service

import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import com.sunshine.lnuplus.callback.LoginCallBack
import com.sunshine.lnuplus.internet.LoadSchoolDate

class LoadSchoolDateService : Service() {

    private var schoolDateList = ArrayList<ArrayList<String>>()

    override fun onBind(intent: Intent): IBinder {
        return MyBind()
    }

    inner class MyBind : Binder(){
        fun getService(): LoadSchoolDateService {
            return this@LoadSchoolDateService
        }
    }

    fun setCallBack(callBack: LoginCallBack){
        LoadSchoolDate(this, callBack, schoolDateList)
    }

    fun getSchoolDateList(): ArrayList<ArrayList<String>> {
        return schoolDateList
    }

}
